home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / misc / moonbas2 / world.h < prev   
Encoding:
C/C++ Source or Header  |  1995-04-11  |  645 b   |  25 lines

  1. // Note: The map_size variables MUST be powers of 2!
  2. // This is because I'm using AND instead of MOD to clip coordinates.
  3.  
  4. const  map_size_x   = 512;
  5. const  map_size_y   = 512;
  6.  
  7. const  clip_mask_x  = map_size_x - 1;
  8. const  clip_mask_y  = map_size_y - 1;
  9.  
  10. const  scale_area   = 2048;
  11. const  scale_height = 128;
  12.  
  13. const  world_size_x = map_size_x * scale_area;
  14. const  world_size_y = map_size_y * scale_area;
  15.  
  16. const  max_alt      = 255;
  17. const  min_alt      = 0;
  18.  
  19. typedef unsigned char map_t [ map_size_x ][ map_size_y ];
  20.  
  21. extern map_t       alt_map;
  22. extern map_t       color_map;
  23.  
  24. void               WORLD_generate ( void );
  25.